﻿using System.Data.Entity;
using Abp.EntityFramework;
using App.Authorization.Users;
using App.Authorization.Roles;
using App.Configuration;
using Abp.Authorization;
using App.Organizations;
using App.MultiTenancy;
using App.Goods;
using App.Authorization;

namespace App.EntityFramework
{
    public class WebPlusDbContext : AbpDbContext
    {
        public WebPlusDbContext()
            : base("WebPlus")
        {
            Configuration.LazyLoadingEnabled = false;
        }

        public virtual IDbSet<User> User { get; set; }
        public virtual IDbSet<Role> Role { get; set; }
        public virtual IDbSet<UserRole> UserRole { get; set; }
        public virtual IDbSet<OrganizationUnit> Team { get; set; }
        public virtual IDbSet<MenuPermission> MenuPermission { get; set; }
        public virtual IDbSet<PermissionSetting> Permission { get; set; }
        public virtual IDbSet<RolePermission> RolePermission { get; set; }
        public virtual IDbSet<UserPermission> UserPermission { get; set; }
        public virtual IDbSet<Button> Button { get; set; }
        public virtual IDbSet<LoginLog> LoginLog { get; set; }
        public virtual IDbSet<Setting> Setting { get; set; }
        public virtual IDbSet<CalendarEvent> CalendarEvent { get; set; }
        public virtual IDbSet<Dictionary> Dictionary { get; set; }
        public virtual IDbSet<Tenant> Tenant { get; set; }

        public virtual IDbSet<ProductBrand> ProductBrand { get; set; }
        public virtual IDbSet<ProductCategory> ProductCategory { get; set; }
        public virtual IDbSet<Product> Product { get; set; }
    }
}